package com.loong.data.model;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @Description:
 * @Author: LiuQun
 * @Date: 2020-12-5 09:32
 */
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "goods_brand",replicas = 0)
public class GoodsBrandModel {

    /**
     * 品牌id
     */
    @Id
    private Long id;

    /**
     * 品牌名称
     */
    @Field
    private String brandName;

    /**
     * 分类id
     */
    @Field
    private Long categoryId;
}